package com.jeecms.wicool.dao.product;

import com.jeecms.cms.entity.main.CmsUser;
import com.jeecms.common.hibernate3.Updater;
import com.jeecms.common.page.Pagination;
import com.jeecms.wicool.entity.product.Product;
import com.jeecms.wicool.entity.product.ProductCate;

import java.util.List;

/**
 * 商品类型DAO接口
 */
public interface ProductCateDao {
    public Pagination getPage(String cateName, Integer cateLevel, int pageNo, int pageSize, CmsUser user);

    public ProductCate findById(Integer id);

    public ProductCate updateByUpdater(Updater<ProductCate> updater);

    public ProductCate save(ProductCate bean);

    public List<ProductCate> getListByCateLevel(Integer level, CmsUser user);

    public ProductCate deleteById(Integer id);

    public List<ProductCate> getAll();
}